/*
 * Copyright (c) Jan Šlahora (${USER}) - 2012.
 * Created in IntelliJ IDEA 10.5
 */

package statistics;

import java.util.HashMap;

/*
*   File Samohlasky 
*   in package statistics
*   was created by slaha
*   on 6.3.12 at 14:06.
*
*/
public class Samohlasky {
  protected static char[] samohlasky = {'a', 'e', 'i', 'o', 'u', 'y', 'á', 'é', 'ě','í', 'ó', 'ů', 'ú', 'ý'};

  protected HashMap<Character, Double> dejPravdepodobnosti(Object[][] data) {
    HashMap<Character, Double> hm = new HashMap<>();
    for (int i = 0; i < data.length; i++) {
      char c = data[i][0].toString().charAt(0);
      Double d = new Double(data[i][2].toString());
      hm.put(c, d);
    }
    return hm;
  }
}
